import Vue from 'vue'
import ElementUI from 'element-ui'
import axios from "axios"
import 'element-ui/lib/theme-chalk/index.css'
import App from './App.vue'

// 引入路由
import router from "./router.js"    // import router 的router 一定要小写， 不要写成Router, 否则报 can't match的报错

import scroll from 'vue-seamless-scroll'
Vue.use(scroll)

Vue.use(ElementUI)
Vue.prototype.$axios = axios

new Vue(
  {
    el: '#app',
    router,  // 注入到根实例中
    render: h => h(App)
  },
 
)

